package com.servletspringboot.servlet;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 第一种创建servlet的方式
 * 需要在启动类中配置扫描此servlet类
 * 多年不写原始的Servlet，需要继承HttpServlet 不要忘记
 */
@WebServlet(name = "normalServlet",urlPatterns = {"/normalServlet"})
public class NormalServlet extends HttpServlet {

    public void doGet(HttpServletRequest req, HttpServletResponse resp){

        System.out.println("普通的servlet已经执行");

    }
}
